<ion-header>
  <ion-navbar>
    <ion-title>
      智能问答
    </ion-title>
  </ion-navbar>
</ion-header>

<ion-content padding="25dpi">
  <ion-list *ngFor="let mess of messArray">
    <div>
      <p>{{mess.time | date: "y MM dd   hh:mm:ss"}}</p>
      <h5>{{mess.message | shiftAny:"-->"}}</h5>
      <ion-item-divider></ion-item-divider>
    </div>
  </ion-list>

</ion-content>

<ion-footer>

  <form [formGroup]="messFormGroup" (submit)="pushMess(messFormGroup.value)">
    <ion-item class="bgTransparent">
      <input class="mess-input" type="text" item-end formControlName="messInput"/>
      <button ion-button item-end type="submit">发送</button>
    </ion-item>
  </form>
</ion-footer>
